package idea.mybatis.db.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author idea
 * @since 2017-01-01
 */
@TableName("tl_sub")
public class TlSub extends Model<TlSub> {

    private static final long serialVersionUID = 1L;

	@TableId(value="sub_id", type= IdType.AUTO)
	private Integer subId;
	@TableField("main_id")
	private Integer mainId;
	@TableField("sub_name")
	private String subName;
	@TableField("sub_sex")
	private Integer subSex;


	public Integer getSubId() {
		return subId;
	}

	public void setSubId(Integer subId) {
		this.subId = subId;
	}

	public Integer getMainId() {
		return mainId;
	}

	public void setMainId(Integer mainId) {
		this.mainId = mainId;
	}

	public String getSubName() {
		return subName;
	}

	public void setSubName(String subName) {
		this.subName = subName;
	}

	public Integer getSubSex() {
		return subSex;
	}

	public void setSubSex(Integer subSex) {
		this.subSex = subSex;
	}

	public static final String SUB_ID = "sub_id";

	public static final String MAIN_ID = "main_id";

	public static final String SUB_NAME = "sub_name";

	public static final String SUB_SEX = "sub_sex";

	@Override
	protected Serializable pkVal() {
		return this.subId;
	}

}
